#!/bin/bash
cd ..
make
cd test
cd helloserver
make
cd ..

OSTRICHD=`readlink -f ../src/ostrichd`
HELLOSERVER=`readlink -f ./helloserver`
PATH=$HELLOSERVER:$OSTRICHD:$PATH
echo "Starting ostrichd"
echo "PATH: $PATH"
echo "OSTRICHDIDR: $OSTRICHD"
echo "OSTRICHD_EXE: `which ostrichd`"
echo "HELLOSERVER_EXE: `which helloserver`"
helloserver &
PID_HELLOSERVER=$!
echo "Latest HELLOSERVER_PID=$PID_HELLOSERVER"
ostrichd flConfig.json
kill $PID_HELLOSERVER
